package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 网元-业务-MTN Channel-细粒度业务盘保护组对象 element_busi_mtn_channel_grain
 *
 * @author net
 * @date 2024-12-10
 */
public class ElementBusiMtnChannelGrain extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** mtn_channel业务ID */
    @Excel(name = "mtn_channel业务ID")
    @ApiModelProperty(value = "mtn_channel业务ID")
    private String mtnChannelId;

    /** 路径类型（1：保护 2：工作） */
    @Excel(name = "路径类型", readConverterExp = "1=：保护,2=：工作")
    @ApiModelProperty(value = "路径类型")
    private String routeType;

    /** 网元id */
    @Excel(name = "网元id")
    @ApiModelProperty(value = "网元id")
    private String elementId;

    /** 网元类型（源、宿） */
    @Excel(name = "网元类型", readConverterExp = "源=、宿")
    @ApiModelProperty(value = "网元类型")
    private String elementType;

    /** 端口id */
    @Excel(name = "端口id")
    @ApiModelProperty(value = "端口id")
    private String portId;

    /** 端口名称 */
    @Excel(name = "端口名称")
    @ApiModelProperty(value = "端口名称")
    private String portName;

    /** 细粒度盘保护组 */
    @Excel(name = "细粒度盘保护组")
    @ApiModelProperty(value = "细粒度盘保护组")
    private String grainProtect;

    /** 是否为模版（Y:是 N:否） */
    @Excel(name = "是否为模版", readConverterExp = "Y=:是,N=:否")
    @ApiModelProperty(value = "是否为模版")
    private String templateFlag;

    /** 条目状态（0未激活 1已激活） */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /** 删除标记（0正常 2删除） */
    private String delFlag;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setMtnChannelId(String mtnChannelId)
    {
        this.mtnChannelId = mtnChannelId;
    }

    public String getMtnChannelId()
    {
        return mtnChannelId;
    }
    public void setRouteType(String routeType)
    {
        this.routeType = routeType;
    }

    public String getRouteType()
    {
        return routeType;
    }
    public void setElementId(String elementId)
    {
        this.elementId = elementId;
    }

    public String getElementId()
    {
        return elementId;
    }
    public void setElementType(String elementType)
    {
        this.elementType = elementType;
    }

    public String getElementType()
    {
        return elementType;
    }
    public void setPortId(String portId)
    {
        this.portId = portId;
    }

    public String getPortId()
    {
        return portId;
    }
    public void setPortName(String portName)
    {
        this.portName = portName;
    }

    public String getPortName()
    {
        return portName;
    }
    public void setGrainProtect(String grainProtect)
    {
        this.grainProtect = grainProtect;
    }

    public String getGrainProtect()
    {
        return grainProtect;
    }
    public void setTemplateFlag(String templateFlag)
    {
        this.templateFlag = templateFlag;
    }

    public String getTemplateFlag()
    {
        return templateFlag;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("mtnChannelId", getMtnChannelId())
                .append("routeType", getRouteType())
                .append("elementId", getElementId())
                .append("elementType", getElementType())
                .append("portId", getPortId())
                .append("portName", getPortName())
                .append("grainProtect", getGrainProtect())
                .append("templateFlag", getTemplateFlag())
                .append("status", getStatus())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
